package cn.com.yang.datastruct.link;

/**
 * @since 2023.08.03
 */
public class QueueDoublleLinkedList {
   private DoubleLinkedList doubleLinkedList;
   public QueueDoublleLinkedList(){
       doubleLinkedList = new DoubleLinkedList();
   }
   public void insert(Object obj){
       doubleLinkedList.addTail(obj);
   }
   public Object delete(){
       return doubleLinkedList.delHead();
   }
   public boolean isEmpty(){
       return doubleLinkedList.isEmpty();
   }
   public int getSize(){
       return doubleLinkedList.getSize();
   }
   public void display(){
       doubleLinkedList.dispaly();
   }
}
